import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import golobalComponents from './utils/golobalComponent'
import filters from './utils/filters'
Object.keys(golobalComponents).forEach(item => {
  Vue.component(item, golobalComponents[item])
})
Object.keys(filters).forEach(item => {
  Vue.filter(item, filters[item])
})

Vue.use(ElementUI)
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
